package com.ruoyi.app.domain.project;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.utils.StringUtils;
import java.math.BigDecimal;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 作用：团队
 * </p>
 *
 * @author Zane
 * @since 2025-10-10 2:38
 */
@Getter
@Setter
@Accessors(chain = true)
public class Team {

  /**
   * 序号
   */
  @Excel(name = "序号")
  private String seq;
  /**
   * 岗位编号
   */
  private String postCode;
  /**
   * 岗位
   */
  @Excel(name = "岗位")
  private String postName;
  /**
   * 岗位级别编号
   */
  private String postLevelCode;
  /**
   * 级别
   */
  @Excel(name = "级别")
  private String postLevel;
  /**
   * 人数
   */
  @Excel(name = "人数")
  private Integer number;
  /**
   * 人天
   */
  @Excel(name = "人天")
  private Integer personDay;
  /**
   * 薪资/天
   */
  @Excel(name = "薪资/天")
  private BigDecimal salaryByDay;
  /**
   * 薪资总额
   */
  @Excel(name = "薪资总额")
  private BigDecimal salaryTotal;

  public String buildCompareKey() {
    return StringUtils.format("{}_{}", this.getPostCode(), this.getPostLevelCode());
  }
}
